package top.kaoshanji.p1ch03a;

import java.util.Date;

/**
 * 代码清单-p1ch03a-66页a：表示文件的类
 * author kaoshanji
 * ^_^
 * create time 2025/2/17 14:00
 */
public class MyFile {

    // 文件名称
    private String name;

    // 创建时间
    private Date createTime;

    // 文件大小
    private int size;

    // 上级目录
    private MyFolder parent;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getSize() {
        return size;
    }

    public void setSize(int size) {
        this.size = size;
    }

    public MyFolder getParent() {
        return parent;
    }

    public void setParent(MyFolder parent) {
        this.parent = parent;
    }
}
